package com.example.courseorder.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @Id
    @NotBlank(message = "请输入你的用户名")
    private String username;
    @NotBlank(message = "请输入你的密码")
    private String password;
}
